import { Data, http } from '@idmy/core'

export function createOrUpdate(model: Data) {
  if (model.id) {
    return http.post('/api/user/AccountType/update', model, { appKey: 'user' })
  } else {
    return http.post('/api/user/AccountType/create', model, { appKey: 'user' })
  }
}
